<?php

/** @var \Illuminate\Database\Eloquent\Factory $factory */
use App\User;
use Illuminate\Support\Str;
use Faker\Generator as Faker;

/*
|--------------------------------------------------------------------------
| Model Factories
|--------------------------------------------------------------------------
|
| This directory should contain each of the model factory definitions for
| your application. Factories provide a convenient way to generate new
| model instances for testing / seeding your application's database.
|
*/


$factory->define(App\Models\CarModels\CarInfo::class, function (Faker $faker) {
    return [
        'number' => $faker->unique()->numberBetween(10000,100000),
        'brand' => $faker->firstName,
        'plates_number'=>$faker->unique()->phoneNumber,
        'card_time'=>$faker->time('Y-m-d H:i:s'),
        'format'=>$faker->phoneNumber,
        'department_id'=>$faker->numberBetween(1,10),
        'use_department_id'=>$faker->numberBetween(1,10),
        'kinds_id'=>$faker->numberBetween(1,10),
        'areas_id'=>$faker->numberBetween(1,10),
        'desc'=>$faker->streetName,
        'car_user'=>$faker->numberBetween(1,10),
        'car_manager'=>$faker->numberBetween(1,10),
        'status'=>$faker->numberBetween(1,3)
    ];
});
